'use strict';

const Koa = require('koa');
const bodyparser = require('koa-bodyparser');
const cors = require('koa-cors')

const routeFiles = require('./routes/index')

const app = new Koa();

app.use(cors());
app.use(bodyparser());
app.use(routeFiles());


app.listen(3000,()=>{
    console.log(`http://localhost:3000/`);
})